import Login from "../pages/login.js";
import MainView from "../pages/main.js";
//引入学生的路由
import studentRoutes from './student/student.js'

//配置路由规则
 var routes = {
    '/login': ()=>{ new Login()},
    '/main':{
 
          //学生的路由
          ...studentRoutes,
        on:()=>{
            new MainView();
        }
    }
  };

  //配置使用二级路由
  var router = Router(routes).configure({ recurse: 'forward' });
  router.init();

  window.location.hash=window.location.hash||"#/login"
